import request from '@/utils/request'

const api_name = "/admin/system/index"  

export default {    
    //验证验证码
    CodeIsRight(email,code) {
        return request({
          url:`${api_name}/CodeIsRight/${email}/${code}`, 
          method: 'get',
      })
    },
    //验证密码
    PasswordIsRight(password) {
        return request({
            url:`${api_name}/PasswordIsRight/${password}`, 
            method: 'get',
        })
    },
    //给邮箱发送验证码功能
    getCaptcha(emailfrom){
      return request({
        url:`${api_name}/getCaptcha`, 
        method: 'post',
        data: emailfrom
      })
    },
    //更改密码
    CodeIsRight(password) {
        return request({
          url:`${api_name}/UpdatePassword/${password}`, 
          method: 'put',
      })
    },

  
}